package com.hyfrogx.modules.information.controller;

import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.common.utils.R;
import com.hyfrogx.modules.information.service.HyInformationOrderService;
import com.hyfrogx.modules.sys.controller.AbstractController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author liubin
 * @date 2019/10/31 15:57
 */
@RestController
@RequestMapping(value = "verifyOrder")
@Api(value = "HyVerifyOrderController", tags = {"后台--资讯号订单管理"})
public class HyVerifyOrderController extends AbstractController {
  @Autowired
  HyInformationOrderService orderService;

  @RequestMapping(value = "record", method = RequestMethod.GET)
  @ApiOperation("订单列表")
  public R getAllRecord(@RequestParam Map<String, Object> map) {
      return R.ok().put("page",orderService.getAllRecord(new QueryExt<>(map)));
  }

}
